﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDn_Traffic_WayBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDn_Traffic_Way;

        void Remove(IDn_Traffic_Way entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDn_Traffic_Way;

        /// <summary>
        /// 返回路段编号对应的轴载设计当量
        /// </summary>
        /// <param name="segid"></param>
        /// <returns></returns>
        double Exists(string segid);

        /// <summary>
        /// 返回路段的交通量的年份分组情况
        /// </summary>
        /// <param name="rdwaryId"></param>
        /// <returns></returns>
        List<string> GetYear(IB_Invntory b);

        /// <summary>
        /// 更新交通量轴载法的关键数据
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="entity"></param>
        void Update(IDn_Traffic_Way entity);
    }
}
